package com.yunxin.core.domain.model.channel;

/**
 * @author zero°
 * @since 2023-07-12
 */
public interface ChannelPromotionUnitPriceConfigRepository {

    /**
     * 保存
     * @param  channelPromotionUnitPriceConfig channelPromotionUnitPriceConfig
     * @return boolean
     */
    boolean saveChannelPromotionUnitPriceConfig(ChannelPromotionUnitPriceConfig channelPromotionUnitPriceConfig);

    /**
     * 更新
     * @param channelPromotionUnitPriceConfig channelPromotionUnitPriceConfig
     * @return boolean
     */
    boolean updateChannelPromotionUnitPriceConfig(ChannelPromotionUnitPriceConfig channelPromotionUnitPriceConfig);

    /**
     * 根据渠道推广id获取数据
     * @param promotionId promotionId
     * @return ChannelPromotionUnitPriceConfig
     */
    ChannelPromotionUnitPriceConfig  getByPromotionId(Long promotionId);
}
